$(document).ready(function () {
  var mySwiper = new Swiper ('.swiper-container', {
    direction: 'horizontal',
    loop: true,
    
    // 如果需要前进后退按钮
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
  })
})

/** 发票查看更多 */
function invoicemore(e) {
  var dom = $('.invoice-img .img-box');
  if (dom[0].className.indexOf('d') >= 0) {
    $(dom[0]).removeClass('d');
    $(e).removeClass('open')
  } else {
    $(dom[0]).addClass('d');
    $(e).addClass('open')
  }
}

/** 出厂编号查看更多 */
function codemore(e) {
  var dom = $('.code-img .img-box');
  if (dom[0].className.indexOf('d') >= 0) {
    $(dom[0]).removeClass('d');
    $(e).removeClass('open')
  } else {
    $(dom[0]).addClass('d');
    $(e).addClass('open')
  }
}

